<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>启点学网校平台管理 - 登录</title>
  <!-- Font Awesome -->
  <link rel="stylesheet" href="/static/libs/fontawesome/css/all.min.css">
  <link rel="stylesheet" href="/static/libs/bootstrap/bootstrap.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="/static/adminlte/adminlte.light.css">
  <style>
    #selectLogin{
     font-size: 14px;
      color: #8bafeb;
      float: right;
      margin-top: 5px;
    }
  </style>
</head>
<body class="hold-transition login-page">
<div class="login-box">
  <div class="login-logo">启点学网校平台管理</div>
  <!-- /.login-logo -->
  <div class="card">
    <div class="card-body login-card-body">
      <p class="login-box-msg">请输入您的管理账号和登录码</p>
      <form action="#" method="post" onsubmit="return false;">
        <div class="input-group mb-3">
          <input type="text" id="loginId" maxlength="20" name="loginId" class="form-control" placeholder="手机号">
          <div class="input-group-append">
            <div class="input-group-text">
              <span class="fas fa-mobile"></span>
            </div>
          </div>
        </div>

        <div class="input-group mb-3" id="pwd-show" th:if="${manageLoginType=='pwd'}">
          <input type="password" id="password" maxlength="20" name="password" class="form-control" placeholder="请输入密码">
          <div class="input-group-append">
            <div class="input-group-text">
              <span class="fas fa-lock"></span>
            </div>
          </div>
        </div>

        <div class="row">
            <div class="col-7">
              <div class="input-group mb-3">
                <input type="text" id="loginRanCode" maxlength="6" name="loginRanCode" class="form-control" placeholder="图片验证码">
                <div class="input-group-append">
                  <div class="input-group-text">
                    <span class="fas fa-lock"></span>
                  </div>
                </div>
              </div>
            </div>
            <div class="col-5">
              <img id="captchaText" style="width:100%; height: 38px;" src="/auth/captcha/text" alt="验证码，点击图片更换" onclick="this.src='/auth/captcha/text?random='+Math.random();" />
            </div>
        </div>

        <div class="row" id="login-code" th:if="${manageLoginType=='mobile'}">
          <div class="col-7">
            <div class="input-group mb-3">
              <input type="text" id="loginMobileCode" maxlength="6" name="loginMobileCode" class="form-control" placeholder="手机登录码">
              <div class="input-group-append">
                <div class="input-group-text">
                  <span class="fas fa-lock"></span>
                </div>
              </div>
            </div>
          </div>
          <div class="col-5">
            <span id="btnSend" class="btn btn-success btn-block" onclick="sendMobileCode()">获取登录码</span>
          </div>
        </div>

        <div class="row">
          <div class="col-12">
            <button id="submit-but" class="btn btn-primary btn-block" onclick="loginSubmitPwd()">登录平台</button>
          </div>
        </div>
      </form>
      <p class="mb-0">&nbsp;</p>
      <!-- /.social-auth-links -->

    </div>
    <!-- /.login-card-body -->
  </div>
</div>
<div class="row pt-5">
  <div class="col-sm-12 text-center">
    Copyright &copy; 2022 <a href="https://www.qidianxue.cn" target="_blank">启点学教育</a>. All rights reserved.
    <br />Powered By：<a href="https://www.dwvan.com" target="_blank" style="color: #0b2e13">Qdx NetSchool Platform <b th:text="${version}">1.0.0</b></a>
  </div>
</div>
<!-- /.login-box -->

<!-- jQuery -->
<script src="/static/libs/jquery/jquery.min.js"></script>
<script src="/static/libs/layer/layer.js"></script>
<script src="/static/adminlte/qdx-login.js"></script>
<script>
  $(document).ready(function() {
    // 登录过期的时候，跳出ifram框架
    if (top.location !== self.location) top.location = self.location;
  });
</script>
</body>
</html>
